package com.kai.awt.layoutmanager;

import java.awt.*;

/**
 * @Author Mr.Yan
 * @create 2022/3/19 20:34
 * @description: FlowLayout
 */
public class Demo3 {
    public static void main(String[] args) {
        Frame frame = new Frame("test3");

        frame.setLayout(new FlowLayout(FlowLayout.LEFT));

        for (int i = 0; i < 100; i++) {
            frame.add(new Button("测试"+i));
        }

        frame.pack();
        frame.setVisible(true);
    }
}
